 <table style=" border: thin;">
    <tr>
        <td>Event ID</td>
        <td>Tiêu đề</td>
        <td>Người đăng</td>
        <td>UID</td>
        <td>Ngày tạo</td>
        <td>Cộng đồng</td>
        <td>Chuyên mục</td>
        <td>Trạng thái</td>
        <td></td>
    </tr>                    
    <?php                                   
    if(count($this->event_list) > 0){
    $i=0;
    foreach($this->event_list as $eventObj){
    ?>
    <tr>
        <td><?=$eventObj->eid?></td>
        <td width="200"><a href="/event/detail/<?=$eventObj->eid?>"><?=$eventObj->event_name?></a></td>
        <td><?=$eventObj->name?></td>
        <td><?=$eventObj->uid?></td>
        <td><?=date("d/m/Y H:i",$eventObj->created)?></td>
        <td><?=$eventObj->network_name?></td>
        <td><?=$eventObj->category_name?></td>
        <td><?php 
        switch($eventObj->promote){
            case 0: echo "Chưa được duyệt"; break;
            case 1: echo "Không công bố";   break;
            case 2: echo "Được duyệt";      break;
            case 3: echo "Nổi bật";         break;
            case 4: echo "VIP";         break;
            case 5: echo "Tiêu điểm";       break;
        }
        ?></td>  
        <td><a href="/event/edit/<?=$eventObj->eid?>/admin=<?=$this->user->uid?>"><img src="/images/b_edit.png" alt="edit"></a></td>                         
    </tr>
    <?php 
        }// end for loop
    } // end of if

    ?>
                           
    
            
    

</table>
    <div class="clear"></div>
    <?php echo $this->pager;?>
    <div class="clear"></div>
    
           <div class="boxBody eventList">
                <?php 
                       if(count($this->event_list) > 0){
                           $i=0;
                           foreach($this->event_list as $eventObj){
                               $epicture = EVENT_STATIC_SERVER."/images/nophoto.gif";
                               
                               if($eventObj->logo){
                                   $epicture = EVENT_IMG_URL_PATH."/".$eventObj->logo;
                               }
                               $href = "/event/detail/".$eventObj->eid;
                               if($this->action=='category' && $eventObj->short_cut != ""){
                                   $href = "/event/".$eventObj->short_cut;
                               }
                               else if($this->action=='category' && $eventObj->website != ""){
                                   $href = $eventObj->website;
                               }
                   ?>
                    <div class="catEventItem" id="div_event_<?php echo $eventObj->eid;?>">
                        <div class="title"><a href="/event/detail/<?php echo $eventObj->eid;?>"><?php echo check_plain($eventObj->event_name);?></a><span class="alert"><?php if($this->timeIndex=='all'){?> (<?php echo $this->eventStatus($eventObj);?>)<?php }?> 
                            <?php if($eventObj->start_time+24*60*60 >= time()){?>
                            <img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/icon_new.gif" alt="new"/>
                            <?php }?>
                            </span>
                        </div>
                        <div>
                            <div class="wrapEventNew01 catEventImg">
                                <div class="wrapEventNew02"> <a href="/event/detail/<?php echo $eventObj->eid;?>"><img src="<?php echo $epicture;?>" onload="resizeImage(this,95,95)"/></a> </div>
                            </div>
                            <div class="catEventSelect">

                                   <div class=""><span>Chọn kiểu hiển thị 
     <form method="post">
     <select name="select" onchange="this.form.submit()">
     <?if($eventObj->promote ==0){?><option value="" >Chọn</option><?}?>
     <option value="5" <?if(ABS($eventObj->promote)==5) echo "selected='selected'"; ?>>Tiêu Điểm</option>
   <!--  <option value="4" <?if(ABS($eventObj->promote)==4) echo "selected='selected'"; ?>>VIP</option>           -->
     <option value="3" <?if(ABS($eventObj->promote)==3) echo "selected='selected'"; ?>>Nổi bật</option>
     <option value="2" <?if(ABS($eventObj->promote)==2) echo "selected='selected'"; ?>>Được duyệt</option>
     <option value="1" <?if(ABS($eventObj->promote)==1) echo "selected='selected'"; ?>>Công bố</option>
 
     </select>
     <input name="value_eid" type="hidden" value="<?=$eventObj->eid?>">
     </form>           
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   </span></div>
                                <div class="clear"></div>
                            </div>
                            <div class="catEventContent">
                                Cộng đồng: <a href="/network/network/view/<?php echo $eventObj->network_id;?>"><?php echo $eventObj->network_name;?></a><br />
                                Chuyên mục: <a href="/event/cat/<?php echo $eventObj->tid;?>"><?php echo $eventObj->category_name;?></a><br />
                                Thời gian: từ <strong><?=date("g:i", $eventObj->start_time)?>' <?=date("a", $eventObj->start_time)?> ngày <?=date("d/m/Y", $eventObj->start_time)?></strong>  tới <strong><?=date("g:i", $eventObj->end_time)?>' <?=date("a", $eventObj->end_time)?> ngày <?=date("d/m/Y", $eventObj->end_time)?></strong><br />
                                Created :<strong><?=date("g:i", $eventObj->created)?>' <?=date("a", $eventObj->created)?> ngày <?=date("d/m/Y", $eventObj->created)?></strong></br>
                                
                                Thành viên: <?php echo $eventObj->member_count;?> người
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                <?php 
                       }// end for loop
                   } // end of if
               ?>
                    <div class="clear"></div>
                    <?php echo $this->pager;?>
                    <div class="clear"></div>
                </div>

